package com.jl.core;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication(scanBasePackages = {"com.jl"})
@EnableSwagger2
@MapperScan(basePackages = {"com.jl.**.mapper"})
@EnableWebSocket
public class JlApplication {

    public static void main(String[] args) {
        System.setProperty("APP_NAME", "NiuNiu");
        System.setProperty("APP_PORT", "9001");
        SpringApplication.run(JlApplication.class, args);
//        try {
//            new Thread(){
//                @Override
//                public void run() {
//                    try {
//                        new NettyServer(8888).start();
//                    } catch (Exception e) {
//                        e.printStackTrace();
//                    }
//                }
//            }.start();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
    }

}
